import './assets/base.css'

import { createApp } from 'vue'
import TDesign from 'tdesign-vue-next'
import router from './routes'
import pinia from './pinia'
import App from './App.vue'
import DkCloundDesign from './dky-design-ui/DkCloudDesignUi.esm.js'
import './assets/css/tdesign.scss'
import 'tdesign-vue-next/es/style/index.css'
import './dky-design-ui/style.css'
import 'virtual:svg-icons-register'
// import SvgIcon from './components/svgIcon/index.vue'
import IconSvg from './components/svgIcon/indexold.vue'


import dir from './directives/index.js'
import directiveMixin from './directives/index.js'

import { useMenuList } from "./pinia/menu.js";

const app = createApp(App)
app.use(TDesign)
app.use(pinia)
app.use(DkCloundDesign)
let routesStores = useMenuList()
const addRouter = async () => {
    routesStores.setAddRouter()
}
await addRouter()

app.use(router)
// app.component('dk-svg-icon', SvgIcon)
app.component('icon-svg', IconSvg)
directiveMixin(app)
app.mount('#app')
